package com.yiyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yiyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yiyi.common.annotation.Excel;

/**
 * 访客统计对象 cs_visitor_statistics
 *
 * @author yiyi
 * @date 2024-10-11
 */
public class CsVisitorStatistics extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 来访url */
    @Excel(name = "来访url")
    private String requestUrl;

    /** 用户ip */
    @Excel(name = "用户ip")
    private String userIp;

    /** 用户位置 */
    @Excel(name = "用户位置")
    private String userAddress;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 用户手机号 */
    @Excel(name = "用户手机号")
    private String userPhone;

    /** 订单编号*/
    private String orderNum;

    /** 支付费用 */
    @Excel(name = "支付费用")
    private BigDecimal payPrice;

    /** 支付状态（0：已支付，1：未支付） */
    @Excel(name = "支付状态", readConverterExp = "0=：已支付，1：未支付")
    private Integer payStatus;

    /** 0：来访，1：点击测算，2：已支付 */
    @Excel(name = "0：来访，1：点击测算，2：已支付")
    private String type;

    /** 查询类型(0：今天，1：近一周，2：近一个月)*/
    private int selectType;

    /** 开始时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /** 结束时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 总价*/
    private String priceSum;

    public String getPriceSum() {
        return priceSum;
    }

    public void setPriceSum(String priceSum) {
        this.priceSum = priceSum;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getSelectType() {
        return selectType;
    }

    public void setSelectType(int selectType) {
        this.selectType = selectType;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRequestUrl(String requestUrl)
    {
        this.requestUrl = requestUrl;
    }

    public String getRequestUrl()
    {
        return requestUrl;
    }
    public void setUserIp(String userIp)
    {
        this.userIp = userIp;
    }

    public String getUserIp()
    {
        return userIp;
    }
    public void setUserAddress(String userAddress)
    {
        this.userAddress = userAddress;
    }

    public String getUserAddress()
    {
        return userAddress;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setUserPhone(String userPhone)
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone()
    {
        return userPhone;
    }
    public void setPayPrice(BigDecimal payPrice)
    {
        this.payPrice = payPrice;
    }

    public BigDecimal getPayPrice()
    {
        return payPrice;
    }
    public void setPayStatus(Integer payStatus)
    {
        this.payStatus = payStatus;
    }

    public Integer getPayStatus()
    {
        return payStatus;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("requestUrl", getRequestUrl())
            .append("userIp", getUserIp())
            .append("userAddress", getUserAddress())
            .append("userName", getUserName())
            .append("userPhone", getUserPhone())
            .append("payPrice", getPayPrice())
            .append("payStatus", getPayStatus())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
